<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .box {
      overflow: hidden;
      display: flex;
      width: 1366px;
      height: 600px;
      margin: 50px auto;
      background-image: url(./image/bg.jpg);
    }

    .box .left,
    .box .right {
      width: 50%;
      height: 600px;
      background-image: url(./image/fm.jpg);
      transition: all .5s;

    }

    .box:hover .left {
      transform: translateX(-100%);
    }

    .box:hover .right {
      transform: translateX(100%);
    }

    .box .right {
      background-position: right 0;
    }
  </style>
</head>

<body>
  <div class="box">
    <div class="left"></div>
    <div class="right"></div>
  </div>
</body>

</html>